home *** CD-ROM | disk | FTP | other *** search
- #import <stdio.h>
- #import <streams/streams.h>
- #import <appkit/graphics.h>
- #import <appkit/NXBitmapImageRep.h>
- #import "NXBitmapImageRepControl.h"
- #import "ImageControl.h"
- #import "Converter.h"
-
- @implementation Converter
-
- - init
- {
- return self;
- }
-
- - free
- {
- return [super free];
- }
-
- - readFromStream: (NXStream *)stream from: sender;
- {
- return nil;
- }
-
- - (BOOL)write: (id)image toStream: (NXStream *)stream from: sender;
- {
- return NO;
- }
-
- - readAllFromStream: (NXStream *)stream from: sender
- {
- return nil;
- }
-
- - (BOOL)writeAll: (id)image toStream: (NXStream *)stream
- {
- return NO;
- }
-
- - customSaveView: (int)width
- {
- return nil;
- }
-
- - customOpenView: (int)width
- {
- return nil;
- }
-
- - (char *)getFormatName
- {
- return("This is the template converter");
- }
-
- - (BOOL)setCustomParameter: (const char *)parameter withValue: (void *)ptr
- {
- return NO;
- }
-
- - (void *)getCustomParameter: (const char *)parameter
- {
- return NULL;
- }
-
- - (char *)copyrightNotice
- {
- return "This is for your copyright notice.";
- }
-
- - (int)errorState
- {
- return CONVERT_ERR_NONE;
- }
-
- - (int)errorMessage
- {
- return ERROR_NO_ERROR;
- }
-
- - (char *)errorStringMessage
- {
- return NULL;
- }
-
- - (BOOL)needsWindowServer;
- {
- return NO;
- }
-
- - (char *)protocolVersion
- {
- return "1.0";
- }
-
- @end
-